import React, { Component } from 'react';
import { Route, Switch, Redirect } from 'react-router-dom';
import Initial from "@/pages/initialize";
import Project from "../pages/project/index";
import Tests from "../pages/testList/index";
import About from "../pages/about/index";
import Setting from "../pages/setting/index";
import Reports from "../pages/reports/index";
import Generate from '../components/generate'
import Flow from '../components/flow'
export default class RouteContent extends Component {
  render() {
    return (
      <Switch>
        <Route exact path="/initialize" component={Initial} />
        <Route exact path="/project" component={Project} />
        <Route exact path="/tests" component={Tests} />
        <Route exact path="/reports" component={Reports} />
        <Route exact path="/about" component={About} />
        <Route exact path="/setting" component={Setting} />
        <Route exact path="/gen" component={Generate} />
        <Route exact path="/flow" component={Flow} />
        <Redirect path="/" to={{ pathname: '/initialize' }} />
      </Switch>
    );
  }
}
